package zheezes.protocol.impl.gd;

public abstract class MasterLinkFrame extends GdFrame {
	@Override
	public GdConAddr getRtua() {
		return null;
	}

	@Override
	public void setRtua(GdConAddr rtua) {
	}

	@Override
	public GdMasterAddr getMsta() {
		return new GdMasterAddr(rtua.getBytes()[2]);
	}

	@Override
	public void setMsta(GdMasterAddr msta) {
		byte[] tmp = rtua.getBytes();
		tmp[1] &= 0xE0;
		tmp[2] = msta.getData();
		rtua.setBytes(tmp, 0, tmp.length);
	}
}
